#ifndef __RNG_H_
#define __RNG_H_

#include "stm32f4xx.h"

#define RNG_FLAG_DRDY               ((uint8_t)0x0001) /*!< Data ready */
#define RNG_FLAG_CECS               ((uint8_t)0x0002) /*!< Clock error current status */
#define RNG_FLAG_SECS               ((uint8_t)0x0004) /*!< Seed error current status */


uint8_t RNG_Init(void);
uint32_t Get_RandomNumber(void);
int32_t Get_RandomRange(int min,int max);
	
#endif
